/*
    count
*/
export default function countReducer(preState = [], action) {
  const { type, data } = action
  console.log(preState, action)
  switch (type) {
    case "add_person":
      return [data, ...preState]
    default:
      return preState
  }
}
